import http from '@/util/http.js'

/**
 * 查询dashboard实时指标
 * @param params
 */
export function getRealtimeMetrics(params) {
  return http({
    url: '/kadmin/mqtt/getRealtimeMetrics',
    method: 'post',
    data: params
  })
}

/**
 * 查询dashboard一个月的日报表
 * @param params
 */
export function getDailyReport(params) {
  return http({
    url: '/kadmin/mqtt/getDailyReport',
    method: 'post',
    data: params
  })
}

/**
 * 查询dashboard主题top统计
 * @param params
 */
export function getTopicTop(params) {
  return http({
    url: '/kadmin/mqtt/getTopicTop',
    method: 'post',
    data: params
  })
}

/**
 * 查询dashboard用户top统计
 * @param params
 */
export function getUserTop(params) {
  return http({
    url: '/kadmin/mqtt/getUserTop',
    method: 'post',
    data: params
  })
}

/**
 * 查询dashboard客户端top统计
 * @param params
 */
export function getClientTop(params) {
  return http({
    url: '/kadmin/mqtt/getClientTop',
    method: 'post',
    data: params
  })
}
